package com.wang.blog.service;


import com.wang.blog.model.MeArticle;
import com.wang.blog.ov.ArticleVo;
import com.wang.blog.ov.PageVo;

import java.util.List;


public interface ArticleService {

    List<MeArticle> listArticles(PageVo page);

    List<MeArticle> listArticles(ArticleVo article, PageVo page);

    List<MeArticle> findAll();

    MeArticle getArticleById(Integer id);

    Integer publishArticle(MeArticle article);

    Integer saveArticle(MeArticle article);

    Integer updateArticle(MeArticle article);

    void deleteArticleById(Integer id);

    List<MeArticle> listArticlesByTag(Integer id);

    List<MeArticle> listArticlesByCategory(Integer id);

    MeArticle getArticleAndAddViews(Integer id);

    List<MeArticle> listHotArticles(int limit);

    List<MeArticle> listNewArticles(int limit);

    List<ArticleVo> listArchives();

}
